package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 节假日对象 sys_holiday
 * 
 * @author ruoyi
 * @date 2025-09-25
 */
public class SysHoliday extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 节假日ID */
    private Long holidayId;

    /** 节假日名称 */
    @Excel(name = "节假日名称")
    private String holidayName;

    /** 节假日日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "节假日日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date holidayDate;

    /** 年份 */
    @Excel(name = "年份")
    private Long year;

    public void setHolidayId(Long holidayId) 
    {
        this.holidayId = holidayId;
    }

    public Long getHolidayId() 
    {
        return holidayId;
    }

    public void setHolidayName(String holidayName) 
    {
        this.holidayName = holidayName;
    }

    public String getHolidayName() 
    {
        return holidayName;
    }

    public void setHolidayDate(Date holidayDate) 
    {
        this.holidayDate = holidayDate;
    }

    public Date getHolidayDate() 
    {
        return holidayDate;
    }

    public void setYear(Long year) 
    {
        this.year = year;
    }

    public Long getYear() 
    {
        return year;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("holidayId", getHolidayId())
            .append("holidayName", getHolidayName())
            .append("holidayDate", getHolidayDate())
            .append("year", getYear())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
